package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.base.product.model.ProdViewHistory;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 *  @author KuangRuifeng
 *  created 2018-11-08
 *  comments 产品浏览历史记录mapper
 */
public interface ProdViewHistoryMapper extends BasicMapper<ProdViewHistory> {

    /**
     * @author wangdawei
     * @param entity
     * @return 价格浏览历史列表
     * @throws Exception
     */
    public List<ProdViewHistory> queryViewHistory(ProdViewHistory entity) throws Exception;


    /**
     * @author wangdawei
     * @param entity
     * @return 统计一个产品有多少人关注
     * @throws Exception
     */
    public List<ProdViewHistory> queryDistinctCount(ProdViewHistory entity) throws Exception;


}
